package loengud.kaheksa;

import java.awt.Graphics;

import javax.swing.JFrame;
import javax.swing.JLabel;

public class PaintDemo extends JFrame {

	public static void main(String[] args) {
		PaintDemo d = new PaintDemo();
		
		JLabel label = new JLabel("dkjakdjhkasjd");
		d.add(label);
		
		d.setVisible(true);
		
		System.out.println("sai labi");
	}
	
	@Override
	public void paint(Graphics g) {
		super.paint(g);
		System.out.println("paint");
		g.drawString("xxxxxxxxxxxxx", 100, 100);
	}
}
